package com.techstar.api.pojo.hinge_situation;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Getter
@Setter
@Entity
@ToString
@Table(name = "hinge_situation_realtime_dispatch")
@org.hibernate.annotations.Table(appliesTo = "hinge_situation_realtime_dispatch",
	comment="hinge-3-各枢纽实时班次")
public class HingeSituationRealtimeDispatch {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '枢纽标识'")
	private String hubId;
	@Column(columnDefinition="varchar(100) COMMENT '枢纽名称'")
	private String hubName;
	@Column(columnDefinition="varchar(100) COMMENT '公路枢纽标识'")
	private String highwayId;
	@Column(columnDefinition="varchar(100) COMMENT '公路枢纽名称'")
	private String highwayName;
	@Column(columnDefinition="varchar(100) COMMENT '铁路枢纽标识'")
	private String railwayId;
	@Column(columnDefinition="varchar(100) COMMENT '铁路枢纽名称'")
	private String railwayName;
	@Column(columnDefinition="varchar(100) COMMENT '机场枢纽标识'")
	private String airportId;
	@Column(columnDefinition="varchar(100) COMMENT '机场枢纽名称'")
	private String airportName;
	@Column(columnDefinition="varchar(100) COMMENT '水运枢纽标识'")
	private String waterwayId;
	@Column(columnDefinition="varchar(100) COMMENT '水运枢纽名称'")
	private String waterwayName;
	@Column(columnDefinition="varchar(100) COMMENT '计划到达时间'")
	private String scheduledArrivalTime;
	@Column(columnDefinition="varchar(100) COMMENT '预计到达时间'")
	private String estimatedArrivalTime;
	@Column(columnDefinition="varchar(100) COMMENT '延误状态'")
	private String delayStatus;
	@Column(columnDefinition="varchar(100) COMMENT '当日延误班次数'")
	private String dailyDelayedShifts;
	@Column(columnDefinition="varchar(100) COMMENT '预达班次数'")
	private String estimatedArrivalShifts;
	@Column(columnDefinition="varchar(100) COMMENT '待发班次数'")
	private String pendingShifts;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}
